import * as types from './mutation-types'

export default {
	[types.SET_DATA_READY](state, dataReady) {
    	state.dataReady = dataReady
  	},
  	[types.SET_USER](state, user) {
	    state.user = user
	},
	[types.SET_TOKEN](state, token) {
	    state.token = token
	},
  	[types.SET_USHOW](state, show) {
	    state.uShow = show
	},
  	[types.SET_UFUNC](state, show) {
	    state.uFunc = show
	},
	[types.SET_CONTAINER_FULL](state, full) {
	    state.containerFull = full
	},
	[types.SET_LOGIN](state, login) {
	    state.login = login
	},
	[types.SET_SHOW_IMAGE](state, showImage) {
	    state.showImage = showImage
	},
	[types.SET_LOAD_MSG](state, msg) {
	    state.loadMsg = msg
	},
	[types.SET_USER_INFO](state, userInfo) {
		state.userInfo = userInfo
	},
	[types.SET_CHAT_PEOPLE](state, chatPeople) {
		state.chatPeople = chatPeople
	},
	[types.SET_NOW_CHAT_LIST](state, nowChatList) {
		state.nowChatList = nowChatList
	},
	[types.SET_ONLINE](state, online) {
		state.online = online
	},
	[types.SET_SNAP](state, snap) {
		state.snap = snap
	},
	[types.SET_CHAT_LOG](state, chatLog) {
		state.chatLog = chatLog
	},
	[types.SET_CHAT_USER](state, chatUser) {
		state.chatUser = chatUser
	},
	[types.SET_GROUP_OBJ](state, groupObj) {
		state.groupObj = groupObj
	},
	[types.SET_WEBSITE](state, website) {
		state.website = website
	},
	[types.SET_RESUME](state, resume) {
		state.resume = resume
	},
	[types.SET_USER_SAY](state, userSay) {
		state.userSay = userSay
	},
	[types.SET_WEBSITE_SEO](state, websiteSeo) {
		state.websiteSeo = websiteSeo
	},
	[types.SET_CONTACT](state, contact) {
		state.contact = contact
	},
	[types.SET_CAROUSEL](state, carousel) {
		state.carousel = carousel
	},
	[types.SET_RECOMMEND](state, recommends) {
		state.recommends = recommends
	},
	[types.SET_TAGS](state, tags) {
		state.tags = tags
	}
}